package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 字符串长度最大验证
 */
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface StrMaxLen {

    int max() default 1;

    String errMsg() default "字符串长度超过允许范围";
}
